package com.woniu.postbar.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author wu
 * @since 2023-05-20
 */
@Getter
@Setter
  @TableName("t_user_post")
@ApiModel(value = "UserPost对象", description = "")
public class UserPost implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("用户id")
      private Integer userId;

      @ApiModelProperty("帖子标题")
      private String title;

      @ApiModelProperty("分类：0-奇闻，1-杂谈，2-投诉建议")
      private Byte category;

      @ApiModelProperty("发布的帖子内容")
      private String content;

      @ApiModelProperty("帖子相关图片")
      private String pictureUrl;

      @ApiModelProperty("阅读数量")
      private Integer readCount;

      @ApiModelProperty("评论数量")
      private Integer commentCount;

      @ApiModelProperty("点赞数量")
      private Integer likeCount;

      @ApiModelProperty("评论开启")
      private Byte commentOpen;

      @ApiModelProperty("用户的地理位置")
      private String location;

      @ApiModelProperty("审核状态：0->未审核；1->审核通过")
      private Byte verifyStatus;

      @ApiModelProperty("0存在 1删除")
      private Byte isDeleted;

      @ApiModelProperty("发布时间")
      @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      @ApiModelProperty("更新修改时间")
      @TableField(fill = FieldFill.UPDATE)
      private Date updateTime;
}
